from django.urls import path
from . import views

app_name = 'movie'

urlpatterns = [
    # 电影列表相关
    path('', views.get_movies, name='movie-list'),
    path('fetch/', views.fetch_and_save_movies, name='fetch-movies'),
    path('stats/', views.get_movie_stats, name='movie-stats'),
    
    # 爬虫相关
    path('crawler/start/', views.start_crawler, name='start-crawler'),
    path('crawler/stop/', views.stop_crawler, name='stop-crawler'),
    path('crawler/status/', views.get_crawler_status, name='crawler-status'),

    # 数据清洗相关
    path('cleaned/', views.get_cleaned_movies, name='get-cleaned-movies'),
]